package edu.stu.cs.software.family.express.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import edu.stu.cs.software.family.base.web.spring.controller.GenericController;
import edu.stu.cs.software.family.express.domain.CourierCP;
import edu.stu.cs.software.family.express.service.CourierCPManager;

/**
 * 'CourierCP' stands for Courier company
 * 
 * @author Administrator
 *
 */
@RequestMapping("/courierCP")
@Controller
public class CourierCPController extends GenericController<CourierCP, Long, CourierCPManager> {

	CourierCPManager courierCPManager;

	@RequestMapping("/index")
	public String index() {
		return "courierCP/index";
	}

	@Autowired
	public void setCourierCPManager(CourierCPManager courierCPManager) {
		this.courierCPManager = courierCPManager;
		this.manager = this.courierCPManager;
	}

}
